import request from '../common/request.js'

const api = {};

//请求方式必须大写，为了兼容其他应用
//故障管理列表
api.ShowData = params => request.globalRequest("/api/services/app/MaintenanceFault/Page",'POST',params,1)

//故障管理详情
api.MalfOption = params => request.globalRequest("/api/services/app/MaintenanceFault/Get",'GET',params,1)
//故障管理列表-设备名称
api.GetEquiName = params => request.globalRequest("/api/services/app/ArchvieEquipment/GetBySystem",'GET',params,1)


// 故障管理详情-设备
api.EquiName = params => request.globalRequest("/api/services/app/ArchvieEquipment/Get", 'GET', params, 1);
//所属专业队
api.TeamNama = params => request.globalRequest("/api/services/app/MaintenanceTeam/GetDetailData",'GET',params,2)

//接收信息
api.ReciveTask = params => request.globalRequest("/api/services/app/MaintenanceFault/ReciveTask",'post',params,2)

//处理
api.DoMaintenanceFault = params => request.globalRequest("/api/services/app/MaintenanceFault/DoMaintenanceFault",'post',params,1)

//故障管理抽屉
api.MalfChoose = params => request.globalRequest("/api/services/app/Frame/GetMalfunctionScreen",'GET',params,1)

//处理
api.GetMaintenanceFault = params => request.globalRequest("/api/services/app/MaintenanceFault/GetFaultResultDetail",'get',params,1)
export default api
